| Fully Qualified Name: | Laminas\Mvc\View\Http\RouteNotFoundStrategy |
| Extends: | AbstractListenerAggregate |
| Name | Description | Defined By |
|---|---|---|
| attach() | {@inheritDoc} | RouteNotFoundStrategy |
| detach() | {@inheritDoc} | AbstractListenerAggregate |
| detectNotFoundError() | Detect if an error is a 404 condition | RouteNotFoundStrategy |
| displayExceptions() | Should we display exceptions related to a not-found condition? | RouteNotFoundStrategy |
| displayNotFoundReason() | Should we display the reason for a not-found condition? | RouteNotFoundStrategy |
| getNotFoundTemplate() | Get template for not found conditions | RouteNotFoundStrategy |
| prepareNotFoundViewModel() | Create and return a 404 view model | RouteNotFoundStrategy |
| setDisplayExceptions() | Set value indicating whether or not to display exceptions related to a not-found condition | RouteNotFoundStrategy |
| setDisplayNotFoundReason() | Set value indicating whether or not to display the reason for a not-found condition | RouteNotFoundStrategy |
| setNotFoundTemplate() | Get template for not found conditions | RouteNotFoundStrategy |
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $events | ||
| $priority |
Returns:
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $events |
Returns:
Detect if an error is a 404 condition
If a "controller not found" or "invalid controller" error type is encountered, sets the response status code to 404.
| Parameter Name | Type | Description |
|---|---|---|
| $e | \MvcEvent |
Returns: void
Should we display exceptions related to a not-found condition?
Returns: bool
Should we display the reason for a not-found condition?
Returns: bool
Get template for not found conditions
Returns: string
Create and return a 404 view model
| Parameter Name | Type | Description |
|---|---|---|
| $e | \MvcEvent |
Returns: void
Set value indicating whether or not to display exceptions related to a not-found condition
| Parameter Name | Type | Description |
|---|---|---|
| $displayExceptions | bool |
Returns: \RouteNotFoundStrategy
Set value indicating whether or not to display the reason for a not-found condition
| Parameter Name | Type | Description |
|---|---|---|
| $displayNotFoundReason | bool |
Returns: \RouteNotFoundStrategy
Get template for not found conditions
| Parameter Name | Type | Description |
|---|---|---|
| $notFoundTemplate | string |
Returns: \RouteNotFoundStrategy